#ifndef UVIEWPORTWINDOWH
#define UVIEWPORTWINDOWH
#include "../stdafx.h"
#include "../UCustomWindow.h"

class TViewPortWindow : public TCustomWindow
{
private:
	float Zoomfactor;
	float PosX, PosY;
	TGUI* FGUI;
	bool RMDown; //right mouse down
	bool MBDown; //MiddleMouse Down
	int MDownX, MDownY;

	float Rotation; //in degrees
	float Tilt; // in degrees
	void PositionCamera();
public:
	TViewPortWindow(TGUI* GUI);
    void Draw();
    void MouseMove	(int X, int Y, int mstate);
    void MouseDown	(int X, int Y, uint8 button);
    void MouseUp	(int X, int Y, uint8 button);
	virtual void MouseLeave	();
};

#endif
